package com.wontube.client.io;

import java.lang.reflect.Type;

/**
 * @author yuechao
 *
 */
public interface IObjectProtocol {	
	/**
	 * to protocol string
	 * 
	 * @param value
	 * @return
	 */
	String toProtoString(Object value);
	
	/**
	 * to object from protocol string
	 * @param <T>
	 * 
	 * @param value
	 * @return
	 */
	Object toObject(String value, Type type);
}
